<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>E-Drift: omd::Buffer Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doc/style.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">E-Drift
   &#160;<span id="projectnumber">0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>omd</b>      </li>
      <li class="navelem"><a class="el" href="classomd_1_1Buffer.html">Buffer</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">omd::Buffer Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="omd::Buffer" --><table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a824fd07f1452b685d4a7cc5f44f59d63"></a><!-- doxytag: member="omd::Buffer::Buffer" ref="a824fd07f1452b685d4a7cc5f44f59d63" args="(string vname, int dx, int dy, int dz)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Buffer</b> (string vname, int dx, int dy, int dz)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acee7daaaa2a46c18dcc09d846a002fb7"></a><!-- doxytag: member="omd::Buffer::alloc" ref="acee7daaaa2a46c18dcc09d846a002fb7" args="(int dx, int dy, int dz)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>alloc</b> (int dx, int dy, int dz)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f82eb710beb1d9bc09326929b715c68"></a><!-- doxytag: member="omd::Buffer::refto" ref="a2f82eb710beb1d9bc09326929b715c68" args="(double *, int, int, int)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>refto</b> (double *, int, int, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e0bff91339cdb8506132d681ea04b58"></a><!-- doxytag: member="omd::Buffer::refto" ref="a8e0bff91339cdb8506132d681ea04b58" args="(Buffer *bref)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>refto</b> (<a class="el" href="classomd_1_1Buffer.html">Buffer</a> *bref)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a609746a715181f8b0057e6be24df2b"></a><!-- doxytag: member="omd::Buffer::refto" ref="a7a609746a715181f8b0057e6be24df2b" args="(class FDTDDomain *cref, string vec=&quot;cell&quot;)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>refto</b> (class <a class="el" href="classomd_1_1FDTDDomain.html">FDTDDomain</a> *cref, string vec=&quot;cell&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ba2588f521763f6975a8436cf3bfb57"></a><!-- doxytag: member="omd::Buffer::size" ref="a3ba2588f521763f6975a8436cf3bfb57" args="()" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade31a1757639da9d603734cf46995b14"></a><!-- doxytag: member="omd::Buffer::value" ref="ade31a1757639da9d603734cf46995b14" args="(int ix, int iy, int iz)" -->
double &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>value</b> (int ix, int iy, int iz)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae95cf24b4e2bbbe262e08aabad2f8fec"></a><!-- doxytag: member="omd::Buffer::dump_nz" ref="ae95cf24b4e2bbbe262e08aabad2f8fec" args="(std::ostream &amp;ofl, int slab)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump_nz</b> (std::ostream &amp;ofl, int slab)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86ccae0c5deb0893eef36db49de3b357"></a><!-- doxytag: member="omd::Buffer::dump_ny" ref="a86ccae0c5deb0893eef36db49de3b357" args="(std::ostream &amp;ofl, int slab)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump_ny</b> (std::ostream &amp;ofl, int slab)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace45e2bc2d7beceadeab7efcd4ccb1c2"></a><!-- doxytag: member="omd::Buffer::dump_nx" ref="ace45e2bc2d7beceadeab7efcd4ccb1c2" args="(std::ostream &amp;ofl, int slab)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump_nx</b> (std::ostream &amp;ofl, int slab)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab3c05a7bc18094730eeee0c6d4b132d2"></a><!-- doxytag: member="omd::Buffer::dump" ref="ab3c05a7bc18094730eeee0c6d4b132d2" args="(std::ostream &amp;ofl, int slab, const char norm)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump</b> (std::ostream &amp;ofl, int slab, const char norm)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a96c692f4fee30cb340440193d3d7c4ac"></a><!-- doxytag: member="omd::Buffer::dump" ref="a96c692f4fee30cb340440193d3d7c4ac" args="(std::ostream &amp;ofl, const char norm)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump</b> (std::ostream &amp;ofl, const char norm)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6dee8a7672c74e1bb20fa9d1c224d626"></a><!-- doxytag: member="omd::Buffer::dump" ref="a6dee8a7672c74e1bb20fa9d1c224d626" args="(std::ostream &amp;ofl)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump</b> (std::ostream &amp;ofl)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a451ae3e81987dce66ecef18aed14f249"></a><!-- doxytag: member="omd::Buffer::prof_z" ref="a451ae3e81987dce66ecef18aed14f249" args="()" -->
double *&#160;</td><td class="memItemRight" valign="bottom"><b>prof_z</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf5d24755f747b6fb9eb9e6964e12842"></a><!-- doxytag: member="omd::Buffer::prof_y" ref="adf5d24755f747b6fb9eb9e6964e12842" args="()" -->
double *&#160;</td><td class="memItemRight" valign="bottom"><b>prof_y</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a146faba198da4e90596492ad5d731c27"></a><!-- doxytag: member="omd::Buffer::prof_x" ref="a146faba198da4e90596492ad5d731c27" args="()" -->
double *&#160;</td><td class="memItemRight" valign="bottom"><b>prof_x</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classomd_1_1Buffer.html#a326d440474f2ba2bf92d816ee65ee287">prof</a> (const char axis)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4b8295b545de5b2abc254a3ef5c67002"></a><!-- doxytag: member="omd::Buffer::add" ref="a4b8295b545de5b2abc254a3ef5c67002" args="(Buffer &amp;A)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>add</b> (<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;A)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a590821cd5f84116402498c0ca10ffbf9"></a><!-- doxytag: member="omd::Buffer::add" ref="a590821cd5f84116402498c0ca10ffbf9" args="(double v)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>add</b> (double v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a328a78bfb3a822ca667dea1c8e5d75d2"></a><!-- doxytag: member="omd::Buffer::sub" ref="a328a78bfb3a822ca667dea1c8e5d75d2" args="(Buffer &amp;A)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>sub</b> (<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;A)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a865065b1562be11650848788ad739887"></a><!-- doxytag: member="omd::Buffer::sub" ref="a865065b1562be11650848788ad739887" args="(double v)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>sub</b> (double v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa6e5711c0494eb5c6f6e1b437de3f994"></a><!-- doxytag: member="omd::Buffer::mul" ref="aa6e5711c0494eb5c6f6e1b437de3f994" args="(Buffer &amp;A)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mul</b> (<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;A)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54ef4d6aaf2bfeff094532f5c1528858"></a><!-- doxytag: member="omd::Buffer::mul" ref="a54ef4d6aaf2bfeff094532f5c1528858" args="(double v)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mul</b> (double v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b920a2eebc0bfe5f098cc3580e2db8d"></a><!-- doxytag: member="omd::Buffer::div" ref="a5b920a2eebc0bfe5f098cc3580e2db8d" args="(Buffer &amp;A)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>div</b> (<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;A)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05826492603bda163967386d0e9178fd"></a><!-- doxytag: member="omd::Buffer::div" ref="a05826492603bda163967386d0e9178fd" args="(double v)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>div</b> (double v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad72297a45138fa8b45ab01ae9af5d086"></a><!-- doxytag: member="omd::Buffer::copy" ref="ad72297a45138fa8b45ab01ae9af5d086" args="(Buffer &amp;A)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>copy</b> (<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;A)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67a213d275e73e4ba8830c732b7c66ce"></a><!-- doxytag: member="omd::Buffer::fill" ref="a67a213d275e73e4ba8830c732b7c66ce" args="(double v)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>fill</b> (double v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3522177f9f00aa3f5282095305769227"></a><!-- doxytag: member="omd::Buffer::fill" ref="a3522177f9f00aa3f5282095305769227" args="(class TableReader &amp;tab, bool derive)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>fill</b> (class TableReader &amp;tab, bool derive)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade0cbd02e19abf90fe4a4c0767f801ec"></a><!-- doxytag: member="omd::Buffer::fill" ref="ade0cbd02e19abf90fe4a4c0767f801ec" args="(string sym, double delta=1.0, int slab=0, int nslab=&#45;1)" -->
<a class="el" href="classomd_1_1Buffer.html">Buffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>fill</b> (string sym, double delta=1.0, int slab=0, int nslab=-1)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad480c2bb301a5c054995cad92a743e82"></a><!-- doxytag: member="omd::Buffer::name" ref="ad480c2bb301a5c054995cad92a743e82" args="" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>name</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af619046e495120c36aa242b07d517388"></a><!-- doxytag: member="omd::Buffer::empty" ref="af619046e495120c36aa242b07d517388" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>empty</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5d2a9252c020b51a588c81abcc1cec27"></a><!-- doxytag: member="omd::Buffer::ptr" ref="a5d2a9252c020b51a588c81abcc1cec27" args="" -->
double *&#160;</td><td class="memItemRight" valign="bottom"><b>ptr</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63f3d91dddce7c3846730a3df4383ad1"></a><!-- doxytag: member="omd::Buffer::nx" ref="a63f3d91dddce7c3846730a3df4383ad1" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>nx</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e9a94e4659e07730c6c832a513079f5"></a><!-- doxytag: member="omd::Buffer::ny" ref="a7e9a94e4659e07730c6c832a513079f5" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>ny</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e694298ce0ddeb810abea3807c5050b"></a><!-- doxytag: member="omd::Buffer::nz" ref="a4e694298ce0ddeb810abea3807c5050b" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>nz</b></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a326d440474f2ba2bf92d816ee65ee287"></a><!-- doxytag: member="omd::Buffer::prof" ref="a326d440474f2ba2bf92d816ee65ee287" args="(const char axis)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double* omd::Buffer::prof </td>
          <td>(</td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>axis</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate lateral average (a profile) in axis direction. caller is responsible to free (using delete[]) the returned pointer </p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Jul 19 2012 12:00:34 for E-Drift by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
